from machine import deepsleep
from io import status_pin
from log import Log

log = Log(tag='DeepSleep')


def sleep():
    status_pin.as_weakup_hold()
    log.info('Sleep..........')
    deepsleep()
    status_pin.reset()
    log.info('Wakeup!!!! TEST')
